Skip to content

fix: correctly apply change profiles filter at pipeline#934

Open
bercianor wants to merge 4 commits into
release/1.4from
fix/profile-filters-apply
Open

fix: correctly apply change profiles filter at pipeline#934
bercianor wants to merge 4 commits into
release/1.4from
fix/profile-filters-apply

Conversation

@bercianor

Copy link
Copy Markdown
Contributor

No description provided.

dieppa
dieppa previously approved these changes Jun 26, 2026

@dieppa dieppa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dieppa dieppa dismissed their stale review June 26, 2026 08:18

I think the @Profile annotation should be only at class-level. Allowing it also in the apply method is confusing. Some user may think, I can use @Profile in the apply method, but not in the rollback?

So I believe the right choice is in at class-level.

I push some changes. Pleas ereview if you think it's ok

Comment on lines +76 to +78
if (applyMethod != null && applyMethod.isAnnotationPresent(Profile.class)) {
return filterProfiles(Arrays.asList(applyMethod.getAnnotation(Profile.class).value()));
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the @Profile annotation should be only at class-level. Allowing it also in the apply method is confusing. Some user may think, I can use @Profile in the apply method, but not in the rollback?

So I believe the right choice is in at class-level.

I push some changes. Please review and let me know your thoughts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants